package flex.cc.sms.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import flex.cc.sms.dto.SmsInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author wkangle
 * @className SmsInfoDao
 * @description 短信信息记录dao
 * @time 2021-10-21 09:35:32
 */
@Mapper
@Repository
public interface SmsInfoDao extends BaseMapper<SmsInfoEntity> {

    /**
     * @description 添加一条记录
     * @param smsInfoEntity
     * @return
     * @author wkangle
     * @time 2021-10-21 09:36:22
     * @exception/throws
     */
    int insert(SmsInfoEntity smsInfoEntity);

    /**
     * @description 根据查询条件查询短信信息记录
     * @param params 查询条件
     * @return
     * @author wkangle
     * @time 2021-10-21 09:37:20
     * @exception/throws
     */
    SmsInfoEntity getOneByParams(Map<String, Object> params);

    /**
     * @description 更新
     * @param smsInfoEntity
     * @return
     * @author wkangle
     * @time 2021-10-21 09:37:13
     * @exception/throws
     */
    int update(SmsInfoEntity smsInfoEntity);

    /**
     * @description 根据条件查询短信信息记录列表
     * @param reqVo 查询参数
     * @return
     * @author wkangle
     * @time 2021/10/21 0021 14:16
     * @exception/throws
     */
    IPage<SmsInfoEntity> queryListWithPage(Page<SmsInfoEntity> page, @Param("qv") SmsInfoEntity reqVo);

}
